有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Spring:无法导入库

我是Spring的新手,我使用Eclipse从here学习Spring教程

但是,在Eclipse中,我无法导入这两个库

import org.springframework.context.ApplicationContext;

import org.springframework.context.support.ClassPathXmlApplicationContext;

我甚至从Spring站点下载了Spring源文件,将其包含在系统库中,添加到我的项目中,也添加到我项目的lib文件夹中,但没有白费力气

你能帮我弄清楚到底哪里出了问题,并给我推荐一些好的Spring教程网站吗

谢谢大家

编辑

这是个例外

Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
    ApplicationContext cannot be resolved to a type
    ClassPathApplicationContext cannot be resolved to a type

    at com.test.App.main(App.java:12)

共 (0) 个答案